
import java.sql.Connection;
import java.sql.DriverManager;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author NeverMore
 */
public class ConnectDB {
    Connection conn = null;
    public Connection Connect(){
    try {
        Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            conn = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=StoreBilling","sa","123456");
            
        } catch (Exception e) {
            e.printStackTrace();
        }
    return conn;
    }
}
